/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Manager.java
 *
 * Created on Mar 25, 2011, 1:00:40 AM
 */

package graphicsReport;

/**
 *
 * @author Chris
 */
public class Manager extends javax.swing.JPanel {
    protected UserInterface.GUI __gui = null;

    protected GraphicsReport_PositionIndicators pi = null;

    /** Creates new form Manager */
    public Manager(UserInterface.GUI _gui) {
        this.__gui = _gui;
        initComponents();
    }



    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel_top = new javax.swing.JPanel();
        jPanel_left = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jPanel_center = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(240, 240, 241));
        setLayout(new java.awt.BorderLayout());

        jPanel_top.setBackground(new java.awt.Color(240, 240, 241));
        jPanel_top.setBorder(javax.swing.BorderFactory.createMatteBorder(22, 4, 1, 4, new java.awt.Color(240, 240, 241)));
        jPanel_top.setLayout(new java.awt.BorderLayout());

        jPanel_left.setBackground(new java.awt.Color(240, 240, 241));
        jPanel_left.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 10, 0, 10, new java.awt.Color(240, 240, 241)));
        jPanel_left.setLayout(new java.awt.GridBagLayout());

        jButton1.setText("Graph Reports of Position Indicators");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel_left.add(jButton1, new java.awt.GridBagConstraints());

        jPanel_top.add(jPanel_left, java.awt.BorderLayout.WEST);

        jPanel_center.setBackground(new java.awt.Color(240, 240, 241));
        jPanel_center.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 5, 0, 10, new java.awt.Color(240, 240, 241)));
        jPanel_center.setLayout(new java.awt.GridLayout());

        jPanel1.setBackground(new java.awt.Color(240, 240, 241));
        jPanel1.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(0, 0, 0)));
        jPanel1.setLayout(new java.awt.BorderLayout());

        jLabel1.setText("Graph report of position indicators to multiple documents.");
        jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER);

        jPanel_center.add(jPanel1);

        jPanel_top.add(jPanel_center, java.awt.BorderLayout.CENTER);

        add(jPanel_top, java.awt.BorderLayout.NORTH);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        try{
            if(pi!=null)
                pi.dispose();

            pi = new GraphicsReport_PositionIndicators(__gui);
            pi.setVisible(true);

        }catch(Exception ex){
            System.out.println(ex.toString());
        }


    }//GEN-LAST:event_jButton1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel_center;
    private javax.swing.JPanel jPanel_left;
    private javax.swing.JPanel jPanel_top;
    // End of variables declaration//GEN-END:variables

}
